﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index1.aspx.cs" Inherits="AnyOffice.general.vehicle.manage.index1" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>车辆信息管理</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="JavaScript"> 
function open_vehicle(vehicle_id)
{
 URL="../vehicle_detail.aspx?vehicle_id="+vehicle_id;
 myleft=(screen.availWidth-500)/2;
 window.open(URL,"read_vehicle","height=350,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}

function order_vehicle(vehicle_id)
{
 URL="../order_detail.aspx?vehicle_id="+vehicle_id;
 myleft=(screen.availWidth-700)/2;
 window.open(URL,"read_vehicle","height=400,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}

function delete_vehicle(vehicle_id)
{
	msg='确认要删除该项车辆么？';
	if(window.confirm(msg))
	{
		URL="delete.aspx?vehicle_id="+vehicle_id;
		window.location=URL;
	}
}                                                        
		</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="Big"><IMG src="/images/menu/vehicle.gif" align="absMiddle" height="20" width="20"><span class="big3">
							车辆信息管理</span><br>
					</td>				
				</tr>
			</table>
							
					<asp:Repeater id="rptVehicle" runat="server">
					<HeaderTemplate>
					<TABLE class="small" cellSpacing="1" cellPadding="3" width="95%" bgColor="#000000" border="0">
					<TR class="TableHeader">
						<TD noWrap align="center">厂牌型号</TD>
						<TD noWrap align="center">车牌号</TD>				
						<TD noWrap align="center">驾驶员</TD>
						<TD noWrap align="center">类型</TD>
						<TD noWrap align="center">状态</TD>
						<TD noWrap align="center">操作</TD>
					</TR>
					</HeaderTemplate>
						<ItemTemplate>
							<tr class="TableLine1">
								<td noWrap><%#Eval("Model")%></td>
								<td noWrap><%#Eval("Number")%></td>
								<td align="center"><%#Eval("Driver")%></td>								
								<td nowrap align="center"><%# Eval("Type")%></td>
								<td nowrap align="center"><%# Eval("Status")%></td>
								<td nowrap align="center">
									<a href="javascript:open_vehicle('<%#Eval("VehicleId")%>');">详细信息</a>
									<a href="javascript:order_vehicle('<%#Eval("VehicleId")%>');">预定情况</a>
									<a href="edit.aspx?vehicle_id=<%#Eval("VehicleId")%>">修改</a>
									<a href="javascript:delete_vehicle('<%#Eval("VehicleId")%>');">删除</a>	
								</td>
							</tr>
						</ItemTemplate>
						<AlternatingItemTemplate>
						<tr class="TableLine2">
								<td noWrap><%#Eval("Model")%></td>
								<td noWrap><%#Eval("Number")%></td>
								<td align="center"><%#Eval("Driver")%></td>								
								<td nowrap align="center"><%# Eval("Type")%></td>
								<td nowrap align="center"><%# Eval("Status")%></td>
								<td nowrap align="center">
									<a href="javascript:open_vehicle('<%#Eval("VehicleId")%>');">详细信息</a>
									<a href="javascript:order_vehicle('<%#Eval("VehicleId")%>');">预定情况</a>
									<a href="edit.aspx?vehicle_id=<%#Eval("VehicleId")%>">修改</a>
									<a href="javascript:delete_vehicle('<%#Eval("VehicleId")%>');">删除</a>	
								</td>
							</tr>
						</AlternatingItemTemplate>
						<FooterTemplate>
						</TABLE>
						</FooterTemplate>			
					</asp:Repeater>				
			<asp:literal id="litMessage" runat="server"></asp:literal>
			</form>
	</body>
</HTML>
